<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box1,.box2,.box3{
      padding: 50px;
    }
    .box1{
      background-color: rgb(211, 203, 80);
    }
    .box2{
      background-color: rgb(143, 197, 177);
    }
    .box3{
      background-color: rgb(148, 130, 206);
    }
  </style>
</head>
<body>
  <div id="app">
      <div class="box1" @click="handleClick1(1)">
        <div class="box2" @click.capture="handleClick2(2)">
          <div class="box3" @click="handleClick3(3)"></div>
        </div>
      </div>
  </div>
  <script src="./vue.global.js"></script>
  <script>
    // 创建应用实例
    const { createApp } = Vue;
    const app = createApp({
      data(){
        return {
         
        }
      },
      methods: {
        handleClick3 (n) {
          console.log(n);
        },
        handleClick2 (n) {
          console.log(n);
        },
        handleClick1 (n) {
          console.log(n);
        }
      }
    })
    app.mount("#app")
   
  </script>
</body>
</html>